package com.qf.pojo;

import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
/**
 * 职位设置(角色实体类)
 */
public class Permsetting implements Serializable {
    private Integer id;

    private Date addtime;

    private String permid;

    private String permname;

    private Integer permselect;

    private Integer permappartment;

    private String perminfo;

    private String permdes;

    private Integer used;

    //映射与菜单表的多对多关系
    private List<Menu> menuList;

    //存放具体功能请求权限的列表
    private List<Menu> permissionList;

    //映射部门表名称
    @Transient
    private String deptName;

    //映射分类表类别
    @Transient
    private String category;

    //启用状态
    private String useState;

    //映射角色菜单表中的对应角色的mid集合
    private List<Integer> mids;






    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getPermid() {
        return permid;
    }

    public void setPermid(String permid) {
        this.permid = permid == null ? null : permid.trim();
    }

    public String getPermname() {
        return permname;
    }

    public void setPermname(String permname) {
        this.permname = permname == null ? null : permname.trim();
    }

    public Integer getPermselect() {
        return permselect;
    }

    public void setPermselect(Integer permselect) {
        this.permselect = permselect;
    }

    public Integer getPermappartment() {
        return permappartment;
    }

    public void setPermappartment(Integer permappartment) {
        this.permappartment = permappartment;
    }

    public String getPerminfo() {
        return perminfo;
    }

    public void setPerminfo(String perminfo) {
        this.perminfo = perminfo == null ? null : perminfo.trim();
    }

    public String getPermdes() {
        return permdes;
    }

    public void setPermdes(String permdes) {
        this.permdes = permdes == null ? null : permdes.trim();
    }

    public Integer getUsed() {
        return used;
    }

    public void setUsed(Integer used) {
        this.used = used;
    }
}